<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>我的摄像头</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <style>
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background-color: #f5f5f5;
      color: #333;
      padding-bottom: 70px;
    }
    .t-card {
      background: white;
      border-radius: 12px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      padding: 16px;
      margin-bottom: 16px;
    }
    .t-card-header {
      font-size: 18px;
      font-weight: 600;
      color: #0052d9;
      margin-bottom: 12px;
    }
    .t-tabbar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      display: flex;
      background: white;
      box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
      height: 60px;
      z-index: 100;
    }
    .t-tabbar-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #666;
      font-size: 12px;
    }
    .t-tabbar-item.active {
      color: #0052d9;
    }
    .t-tabbar-icon {
      font-size: 24px;
      margin-bottom: 2px;
    }
    .t-button {
      display: block;
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      text-align: center;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }
    .t-button-primary {
      background-color: #0052d9;
      color: white;
    }
    .t-button-primary:hover {
      background-color: #003db3;
    }
    .scan-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
    }
    .scan-area {
      width: 260px;
      height: 260px;
      margin: 20px 0;
      position: relative;
      border: 2px dashed #0052d9;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .scan-line {
      position: absolute;
      width: 100%;
      height: 2px;
      background-color: #0052d9;
      animation: scanAnimation 2s linear infinite;
    }
    .scan-corners {
      position: absolute;
      width: 100%;
      height: 100%;
    }
    .scan-corner {
      position: absolute;
      width: 20px;
      height: 20px;
      border-color: #0052d9;
      border-style: solid;
      border-width: 0;
    }
    .top-left {
      top: 0;
      left: 0;
      border-top-width: 3px;
      border-left-width: 3px;
    }
    .top-right {
      top: 0;
      right: 0;
      border-top-width: 3px;
      border-right-width: 3px;
    }
    .bottom-left {
      bottom: 0;
      left: 0;
      border-bottom-width: 3px;
      border-left-width: 3px;
    }
    .bottom-right {
      bottom: 0;
      right: 0;
      border-bottom-width: 3px;
      border-right-width: 3px;
    }
    .scan-text {
      font-size: 16px;
      color: #666;
      text-align: center;
      margin-bottom: 20px;
    }
    .scan-tip {
      font-size: 14px;
      color: #999;
      text-align: center;
      margin-top: 16px;
    }
    .camera-list {
      margin-top: 30px;
    }
    .camera-item {
      display: flex;
      align-items: center;
      padding: 12px;
      border-bottom: 1px solid #eee;
    }
    .camera-icon {
      font-size: 24px;
      margin-right: 12px;
      color: #0052d9;
    }
    .camera-info {
      flex: 1;
    }
    .camera-name {
      font-weight: 500;
      margin-bottom: 4px;
    }
    .camera-status {
      font-size: 12px;
      color: #00a870;
    }
    .camera-action {
      color: #666;
    }
    @keyframes scanAnimation {
      0% {
        top: 0;
      }
      50% {
        top: 100%;
      }
      100% {
        top: 0;
      }
    }
  </style>
</head>
<body>
  <div class="p-4">
    <div class="t-card">
      <div class="t-card-header">扫码绑定摄像头</div>
      <div class="scan-container">
        <div class="scan-text">请将摄像头上的二维码放入框内</div>
        <div class="scan-area">
          <div class="scan-corners">
            <div class="scan-corner top-left"></div>
            <div class="scan-corner top-right"></div>
            <div class="scan-corner bottom-left"></div>
            <div class="scan-corner bottom-right"></div>
          </div>
          <div class="scan-line"></div>
          <div style="width: 80%; height: 80%; background-color: #eee; opacity: 0.3; display: flex; align-items: center; justify-content: center;">
            <span style="font-size: 14px; color: #666;">二维码区域</span>
          </div>
        </div>
        <div class="scan-tip">将摄像头靠近扫码区域，系统将自动识别</div>
        <button class="t-button t-button-primary mt-4">手动输入设备码</button>
      </div>
    </div>

    <div class="t-card">
      <div class="t-card-header">已绑定的摄像头</div>
      
      <div class="camera-item">
        <div class="camera-icon">📹</div>
        <div class="camera-info">
          <div class="camera-name">厨房摄像头</div>
          <div class="camera-status">在线</div>
        </div>
        <div class="camera-action">⋮</div>
      </div>

      <div class="camera-item">
        <div class="camera-icon">📹</div>
        <div class="camera-info">
          <div class="camera-name">冰箱摄像头</div>
          <div class="camera-status">在线</div>
        </div>
        <div class="camera-action">⋮</div>
      </div>
    </div>
  </div>

  <!-- 底部导航栏 -->
  <div class="t-tabbar">
    <div class="t-tabbar-item">
      <div class="t-tabbar-icon">🏠</div>
      <div>首页</div>
    </div>
    <div class="t-tabbar-item">
      <div class="t-tabbar-icon">👨‍👩‍👧‍👦</div>
      <div>我的家庭</div>
    </div>
    <div class="t-tabbar-item active">
      <div class="t-tabbar-icon">📷</div>
      <div>我的摄像头</div>
    </div>
  </div>
</body>
</html>
 